package abc.secgroup.music_backend.entity;


import javax.persistence.*;
import java.util.Set;

@Entity
@Table(name="t_singer")
public class SingerDO extends ResourceDO{

    //全局唯一ID
    @Column(name="guid")
    private String guid;

    //歌手名称
    @Column(name = "singer_name")
    private String name;

    //歌手性别
    @Column(name = "singer_sex")
    private String sex;

    //专辑列表
    @ManyToMany(mappedBy = "singerSet")
    private Set<AlbumDO> albumSet;

    //歌曲列表
    @ManyToMany(mappedBy = "singerSet")
    private Set<RepositoryDO> repositorySet;


    public String getGuid() {
        return guid;
    }

    public void setGuid(String guid) {
        this.guid = guid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Set<AlbumDO> getAlbumSet() {
        return albumSet;
    }

    public void setAlbumSet(Set<AlbumDO> albumSet) {
        this.albumSet = albumSet;
    }

    public Set<RepositoryDO> getRepositorySet() {
        return repositorySet;
    }

    public void setRepositorySet(Set<RepositoryDO> repositorySet) {
        this.repositorySet = repositorySet;
    }
}
